package com.scs.application.core.msg.domain;

import com.scs.application.core.msg.enums.MessageType;
import lombok.Data;
import lombok.experimental.Accessors;
import me.chanjar.weixin.mp.bean.template.WxMpTemplateData;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 */
@Data
@Accessors(chain = true)
public class WechatMessage implements RawMessage {

    private String loginKey;

    private String templateCode;

    /**
     * 消息模板中可能用到的参数值
     */
    private Map<String, Object> params;

    @Override
    public MessageType getMessageType() {
        return MessageType.WECHAT;
    }

    // 消息模板Id
    private String toUrl;

    // 消息模板Id
    private String templateId;

    // 要发送的参数
    private List<WxMpTemplateData> data;

}
